home *** CD-ROM | disk | FTP | other *** search
/ Young & Modern Digital Makeover Magic / Young & Modern Digital Makeover Magic.iso / data1.cab / TempMKV / MGITools.js < prev    next >
Encoding:
JavaScript  |  1999-10-18  |  16.3 KB  |  591 lines

  1. //MGITools.js
  2. // Copyright (c) 1999 MGI Software Corp. All Rights Reserved
  3. // <Script>
  4.  
  5. function GetBrowserVersion ()
  6. {
  7. var ua = window.navigator.userAgent
  8. var msie = ua.indexOf ( "MSIE " )
  9.  
  10.    if ( msie > 0 ) // is Microsoft Internet Explorer; return version number
  11.       return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
  12.    else
  13.       return 0          // is other browser
  14. }
  15.  
  16. function CreateNewDocument ()
  17. {
  18.    LoadHeadTemplate();
  19.    SetInsertModeFull();                //SpencerP-test
  20.    SelectLayer('0');
  21.    DoDelete();
  22.    SelectLayer('none');
  23. }
  24.  
  25. function PrepareLayer (strLayerName)
  26. {
  27.    SetReplacementLayer ('none') ;
  28.  
  29.    // make sure this layer is not locked
  30.    LockLayer (strLayerName, 0) ;
  31.  
  32.    // make sure this layer is visible
  33.    ShowLayer (strLayerName) ;
  34.  
  35.    SelectLayer (strLayerName) ;         // Select the layer in question
  36.    SetReplacementLayer (strLayerName) ; // Set the layer to accept replacement
  37. }
  38.  
  39. function GetColorSwatchHTML ()
  40. {
  41. var strHTML = "" ;
  42.  
  43.     strHTML += "<OBJECT ID='MGIColorPopup' WIDTH=40 HEIGHT=40 VSPACE=10" ;
  44.     strHTML += "< CLASSID='CLSID:205D3C20-FD5E-11D2-ACB6-0080C877D9B9'>" ;
  45.     strHTML += "<PARAM NAME='WorkflowID' VALUE='file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf'>" ;
  46.     strHTML += "<PARAM NAME='WorkflowStep' VALUE=0>" ;
  47.     strHTML += "<PARAM NAME='DisplayWorkflowID' VALUE='file:/Resources/WorkflowsComponent|Common|stdgui.wkf'>" ;
  48.     strHTML += "<PARAM NAME='DisplayStep' VALUE=62>";
  49. //    strHTML = "<PARAM NAME='HelpFileName' VALUE='Prism.hlp'>" ;
  50.     strHTML += "<PARAM NAME='BackgroundMoniker' VALUE='file:/Resources/Decor/Panel_Mkv.PNG'>>" ;
  51.     strHTML += "</OBJECT>" ;
  52.  
  53.    return strHTML ;
  54. }
  55.  
  56. function DoDelete()
  57. {
  58.     LTKTriggerEvent("CommandDispatcher,Active,20036");
  59. }
  60.  
  61. function DoClose()
  62. {
  63.     LTKTriggerEvent('CommandDispatcher,Broadcast,20002');
  64. }
  65.  
  66. function DoCloseAll()
  67. {
  68.     LTKTriggerEvent('CommandDispatcher,Broadcast,20003');
  69. }
  70.  
  71. function DoAbandonAndCloseAll()
  72. {
  73.     LTKTriggerEvent('CommandDispatcher,Broadcast,20003');
  74.     DoCloseAll();
  75. }
  76.  
  77. /*
  78.  * These are tools that (I know for a fact)work.
  79.  */
  80.  
  81. function SelectTrimTool (strMode)
  82. {
  83.    switch (strMode)
  84.    {
  85.    default :
  86.    case 'start' :
  87.        LTKTriggerEvent ('CommandDispatcher,Active,5105') ; // IDC_SLD_SMARTPOLY
  88.        LTKSetWorkflowValue ("file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf",18,0) ;
  89.        break ;
  90.        
  91.    case '+' :
  92. //       LTKTriggerEvent ('CommandDispatcher,Active,5001') ; // IDM_TOOL_FREEHAND
  93.        LTKSetWorkflowValue ("file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf",18,1) ;
  94.        break ;
  95.        
  96.    case '-' :
  97. //       LTKTriggerEvent ('CommandDispatcher,Active,5001') ; // IDM_TOOL_FREEHAND
  98.        LTKSetWorkflowValue ("file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf",18,2) ;
  99.        break ;
  100.    }
  101. }
  102.  
  103. function GetOpacity ()
  104. {
  105.    // Grab the opacity
  106.    return LTKGetWorkflowValue ('file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf',31) ;
  107. }
  108.  
  109. function SetOpacity (nOpacity)
  110. {
  111.    // set the opacity
  112.    LTKSetWorkflowValue ('file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf',31,nOpacity) ;
  113. }
  114.  
  115. function SelectEraserTool ()
  116. {
  117.    // Grab the current opacity
  118.    var nOpacity = GetOpacity () ;
  119.  
  120.    // force the opacity to be 100
  121.    SetOpacity (100) ;
  122.  
  123.    LTKTriggerEvent ('CommandDispatcher, Active, 5016') ; // IDM_TOOL_ERASER
  124.  
  125.    return nOpacity ;
  126. }
  127.  
  128. function SelectBlurTool ()
  129. {
  130.    LTKTriggerEvent ('CommandDispatcher, Active, 5001') ; // IDM_TOOL_FREEHAND
  131.    LTKTriggerEvent ('file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf, 21, 606401') ; // IDM_SOFTENPAINT
  132. }
  133.  
  134. function SelectPaintToolSolid ()
  135. {
  136.    LTKTriggerEvent ('CommandDispatcher, Active, 5001') ; // IDM_TOOL_FREEHAND
  137.    LTKTriggerEvent ('file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf, 21, 606001') ; // IDM_SOLIDPAINT
  138. }
  139.  
  140. function SelectToningTool ()
  141. {
  142.    LTKTriggerEvent ('CommandDispatcher, Active, 5001') ; // IDM_TOOL_FREEHAND
  143.    LTKTriggerEvent ('file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf, 21, 606005') ; // IDM_TONINGPAINT
  144. }
  145.  
  146. function SelectPenSize (strSize)
  147. {
  148. var strCommand = "CommandDispatcher, Active, 20052," + strSize + ",0" ; // IDM_EDIT_SETPENSIZE 
  149.    
  150.    LTKTriggerEvent (strCommand) ;
  151. }
  152.  
  153. function SelectColorPickerTool () // IDM_TOOL_EYEDROPPER
  154. {
  155.     LTKTriggerEvent ('file:/Resources/WorkflowsComponent|Photos|EditorPaint.wkf, 21, 5007') ;
  156. //   SetOpacity (10) ;  // as per QA's request*2
  157. }
  158.  
  159. function ResetWarpTool ()
  160. {
  161.    LTKTriggerEvent ('CommandDispatcher, Active, 7200') ; // IDC_WARP_RESET
  162. }
  163.  
  164. function SelectWarpTool ()
  165. {
  166.    LTKTriggerEvent ('CommandDispatcher, Active, 20050') ; // IDM_EDIT_FORCEPREVIEW
  167. }
  168.  
  169. function OpenSelectedItem ()
  170. {
  171.    LTKTriggerEvent ('CommandDispatcher, Active, 20212') ; // IDM_OPENITEM
  172.    LTKTriggerEvent ('CommandDispatcher, Active, 20200') ; // IDM_ADD
  173. }
  174.  
  175. function RotateSelectedItem (strDirection)
  176. {
  177.     switch (strDirection)
  178.     {
  179.     case 'ccw' :
  180.     case 'left' :
  181.       LTKTriggerEvent ('CommandDispatcher, Active, 45001') ; // IDM_IMAGE_ROTATECCLKW_INCREMENT
  182.       break ;
  183.       
  184.     case 'cw' :
  185.     case 'right' :
  186.       LTKTriggerEvent ('CommandDispatcher, Active, 45000') ; // IDM_IMAGE_ROTATECLKW_INCREMENT
  187.       break ;
  188.  
  189.    default :
  190.       break ;
  191.    }
  192. }
  193.  
  194. function MoveSelectedItem (strDirection)
  195. {
  196.     switch (strDirection)
  197.     {
  198.     case 'up' :
  199.       LTKTriggerEvent ('CommandDispatcher, Active, 45006') ; // IDM_IMAGE_MOVEUP_INCREMENT
  200.       break ;
  201.  
  202.     case 'down' :
  203.       LTKTriggerEvent ('CommandDispatcher, Active, 45007') ; // IDM_IMAGE_MOVEDOWN_INCREMENT
  204.       break ;
  205.  
  206.     case 'left' :
  207.       LTKTriggerEvent ('CommandDispatcher, Active, 45005') ; // IDM_IMAGE_MOVELEFT_INCREMENT
  208.       break ;
  209.       
  210.      case 'right' :
  211.       LTKTriggerEvent ('CommandDispatcher, Active, 45004') ; // IDM_IMAGE_MOVERIGHT_INCREMENT
  212.       break ;
  213.       
  214.    default :
  215.       break ;
  216.    }
  217. }
  218.  
  219. function SelectZoomTool ()
  220. {                  
  221.     LTKTriggerEvent ('CommandDispatcher,Broadcast,2101') ; // IDC_VWR_ZOOMMODE
  222. }
  223.  
  224. function SelectPanningTool ()
  225. {
  226.    LTKTriggerEvent ('CommandDispatcher,Broadcast,2102') ; // IDC_VWR_PANMODE
  227. }
  228.  
  229. //SpencerP - 05/27/99
  230. function SelectAll ()
  231. {
  232.    LTKTriggerEvent ('CommandDispatcher,Active,20038') ; // IDM_EDIT_SELECTALL
  233. }
  234.  
  235. //SpencerP - 05/27/99
  236. function CutToClipboard ()
  237. {
  238.    LTKTriggerEvent ('CommandDispatcher,Broadcast,20032') ; // IDM_EDIT_CUT
  239. }
  240.  
  241. function CopyToClipboard ()
  242. {
  243.    LTKTriggerEvent ('CommandDispatcher,Broadcast,20033') ; // IDM_EDIT_COPY
  244. }
  245.  
  246. function PasteFromClipboard (bFlushClipboard)
  247. {
  248.    LTKTriggerEvent ('CommandDispatcher,Broadcast,20034') ; // IDM_EDIT_PASTE
  249.  
  250.    if (bFlushClipboard == true)
  251.       FlushClipboard()
  252. }
  253.  
  254. function ClipPaste()    // Used by MakeoverBrowser.js and MakeoverDocView.js
  255. {
  256.     LTKTriggerEvent( "CommandDispatcher,Active,20034");
  257. }
  258.  
  259. function CopyAll () // copy entire image, even if nothing selected
  260. {
  261.    LTKTriggerEvent( "CommandDispatcher,Active,20055") ; // IDM_EDIT_COPYALL
  262. }
  263.  
  264. function InvertSelection()
  265. {
  266.     LTKTriggerEvent( "CommandDispatcher,Active,20039");
  267. }
  268.  
  269. function ClearSelection()
  270. {
  271.     LTKTriggerEvent( "CommandDispatcher,Active,20040");
  272. }
  273.  
  274. function CancelTrimTool ()
  275. {
  276.    LTKTriggerEvent ('CommandDispatcher,Broadcast,20044') ; // IDM_EDIT_CANCEL
  277. }
  278.  
  279. function ResetTrimTool ()
  280. {
  281.    LTKTriggerEvent ('CommandDispatcher,Active,20045') ; // IDM_EDIT_RESETTRIM
  282.    LTKTriggerEvent ('CommandDispatcher,Active,20044') ; // IDM_EDIT_CANCEL
  283. }
  284.  
  285. function ResizeImage (strWidth, strHeight)
  286. {
  287. var strParam = 'CommandDispatcher,Active,20109' ;
  288.  
  289.     strParam += ',' + strWidth + ',' + strHeight ;
  290.  
  291.    LTKTriggerEvent (strParam) ; // IDM_IMAGE_RESIZE
  292. }
  293.  
  294. function ScaleImage (strDirection)
  295. {
  296.    switch (strDirection)
  297.    {
  298.    case 'up' :
  299.       LTKTriggerEvent ('CommandDispatcher,Active,45003') ; // IDM_IMAGE_SCALEUP_INCREMENT
  300.       break ;
  301.  
  302.    case 'down' :
  303.       LTKTriggerEvent ('CommandDispatcher,Active,45002') ; // IDM_IMAGE_SCALEDOWN_INCREMENT
  304.       break ;
  305.       
  306.    default :
  307.       break ;
  308.    }   
  309. }
  310.  
  311. function EnableLayoutPaintTool (bFlag)
  312. {
  313.    if (bFlag)
  314.    {
  315. //      LTKTriggerEvent ('CommandDispatcher,Active,606401') ; // IDM_SOFTENPAINT
  316.       LTKTriggerEvent ('CommandDispatcher,Active,5002') ; // IDM_EDITOR_FLOATSELECTION
  317.    }
  318.    else
  319.    {
  320.    }
  321. }
  322.  
  323. function DisableImageEditorTools ()
  324. {
  325.    LTKTriggerEvent ('CommandDispatcher,Broadcast,20044') ; // IDM_EDIT_CANCEL
  326.    LTKTriggerEvent ('CommandDispatcher,Broadcast,5039') ; // IDM_EDITORNEUTRAL
  327. }
  328.  
  329. function MoveLayer (nLayer, strPos)
  330. {
  331.    switch (strPos)
  332.    {
  333.    case 'front' :
  334.       LTKTriggerEvent ('CommandDispatcher, Active, 20104') ; // IDM_IMAGE_TOFRONT
  335.       break ;
  336.       
  337.    case 'back' :
  338.       LTKTriggerEvent ('CommandDispatcher, Active, 20105') ; // IDM_IMAGE_TOBACK
  339.       break ;
  340.  
  341.    default :
  342.       break ;
  343.    }
  344. }
  345.  
  346. //spencerp 05/27/99
  347. function SelectLayer ( layer )
  348. {
  349.    switch ( layer )
  350.    {
  351.    case 'none':
  352.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,0') ; // IDM_LAYOUT_SETSELECTION
  353.       break;
  354.    case 'grid':
  355.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVGrid') ; // IDM_LAYOUT_SETSELECTION
  356.       break ;
  357.    case 'background':
  358.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVBackground') ; // IDM_LAYOUT_SETSELECTION
  359.       break;
  360.    case 'face':
  361.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVFace') ; // IDM_LAYOUT_SETSELECTION
  362.       break;
  363.    case 'hair':
  364.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVHair') ; // IDM_LAYOUT_SETSELECTION
  365.       break;
  366.    case 'eyeglasses':
  367.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVEyeglasses');
  368.       break;
  369.    case 'hat':
  370.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVHat');
  371.       break;
  372.    case 'frame':
  373.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVFrame');
  374.       break;
  375.    case 'temp1':
  376.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVTemp1');
  377.       break;
  378.    case 'temp2':
  379.       LTKTriggerEvent ('CommandDispatcher,Active,45100,1024,STR MKVTemp2');
  380.       break;
  381.    default:
  382.       LTKTriggerEvent ('CommandDispatcher,Active,45100,'+ layer ) ; // IDM_LAYOUT_SETSELECTION
  383.       break;
  384.    }
  385. }
  386.  
  387. //spencerp 05/27/99
  388. function SetReplacementLayer( layer )
  389. {
  390.    switch ( layer )
  391.    {
  392.    case 'none':
  393.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,0') ; // IDM_LAYOUT_SETSELECTION
  394.       break;
  395.    case 'background':
  396.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVBackground') ; // IDM_LAYOUT_SETSELECTION
  397.       break;
  398.    case 'face':
  399.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVFace') ; // IDM_LAYOUT_SETSELECTION
  400.       break;
  401.    case 'hair':
  402.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVHair') ; // IDM_LAYOUT_SETSELECTION
  403.       break;
  404.    case 'eyeglasses':
  405.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVEyeglasses') ; // IDM_LAYOUT_SETSELECTION
  406.       break;
  407.    case 'hat':
  408.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVHat') ; // IDM_LAYOUT_SETSELECTION
  409.       break;
  410.    case 'frame':
  411.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVFrame');
  412.       break;
  413.    case 'temp1':
  414.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVTemp1');
  415.       break;
  416.    case 'temp2':
  417.       LTKTriggerEvent ('CommandDispatcher,Active,45301,1024,STR MKVTemp2');
  418.       break;
  419.    }
  420. }
  421.  
  422. //spencerp 06/01/99
  423. function LockLayer ( layer, lock )
  424. {
  425.    var commandID;
  426.    
  427.    if ( lock == '1' )
  428.       commandID = '45200';        // IDM_LAYOUT_LOCKLAYER
  429.    else
  430.       commandID = '45201';        // IDM_LAYOUT_UNLOCKLAYER
  431.    
  432.    switch ( layer )
  433.    {
  434.    default:
  435.    case 'none':
  436.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',1,MKVNone') ;
  437.       break;
  438.    case 'background':
  439.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVBackground') ;
  440.       break;
  441.    case 'face':
  442.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVFace') ;
  443.       break;
  444.    case 'hair':
  445.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVHair') ;
  446.       break;
  447.    case 'eyeglasses':
  448.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVEyeglasses') ;
  449.       break;
  450.    case 'hat':
  451.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVHat') ;
  452.       break;
  453.    case 'frame':
  454.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVFrame') ;
  455.       break;
  456.    case 'temp1':
  457.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVTemp1') ;
  458.       break;
  459.    case 'temp2':
  460.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVTemp2') ;
  461.       break;
  462.    }
  463. }
  464.  
  465. //spencerp 06/01/99
  466. function SendLayerToImageEditor()
  467. {
  468.    LTKTriggerEvent ('CommandDispatcher,Active,7026') ; // IDM_PUBLISH_IMAGEEDIT
  469. }
  470.  
  471. //spencerp 05/27/99
  472. function LoadHeadTemplate()
  473. {
  474.    LTKTriggerEvent ('CommandDispatcher,Broadcast,45400,0,STR file:/Temp/Untitled.pzp') ;
  475. }
  476.  
  477. //spencerp 05/27/99
  478. function TurnOnSelectionHandle( bFlag )
  479. {
  480.    state = !bFlag ? '0' : '1' ;
  481.    LTKTriggerEvent ('CommandDispatcher,Active,45300,' + state) ; // IDM_SETUSEHANDLES
  482. }
  483.  
  484. function DoUndo ()
  485. {
  486.    LTKTriggerEvent ('CommandDispatcher,Active,20030') ; // IDM_EDIT_UNDO
  487. }
  488.  
  489. function DoRedo ()
  490. {
  491.    LTKTriggerEvent ('CommandDispatcher,Active,20031') ; // IDM_EDIT_REDO
  492. }
  493.  
  494. function SetDragNDropPosOveride( val )
  495. {
  496.    if ( val == 1 )
  497.       LTKTriggerEvent ('CommandDispatcher,Active,45140,1') ; // IDM_LAYOUT_OVERRIDEDROPPOS
  498.    else
  499.       LTKTriggerEvent ('CommandDispatcher,Active,45140,0') ; // IDM_LAYOUT_OVERRIDEDROPPOS
  500. }
  501.  
  502. function SetInsertModeFull()
  503. {
  504.    LTKTriggerEvent ('CommandDispatcher,Active,45150,1,2') ;    // IDM_LAYOUT_SETINSERTXPOS
  505.    LTKTriggerEvent ('CommandDispatcher,Active,45151,1,2') ;    // IDM_LAYOUT_SETINSERTYPOS
  506.    LTKTriggerEvent ('CommandDispatcher,Active,45160,1,1') ;    // IDM_LAYOUT_SETINSERTXSCALE
  507.    LTKTriggerEvent ('CommandDispatcher,Active,45161,1,1') ;    // IDM_LAYOUT_SETINSERTYSCALE
  508. }
  509.  
  510. //spencerp 07/05/99
  511. function FlushClipboard()
  512. {
  513.    LTKTriggerEvent ('CommandDispatcher,Broadcast,45401,0,0') ;  // IDM_FLUSH_CLIPBOARD
  514. }
  515.  
  516. //spencerp 08/27/99
  517. function DeleteWithTransparent ( bFlag )
  518. {
  519.    if ( bFlag == '0' )
  520.       LTKTriggerEvent ('CommandDispatcher,Active,45320,0,0') ;
  521.    else
  522.       LTKTriggerEvent ('CommandDispatcher,Active,45320,0,STR file:/Resources/CoreUI|Transparent.png') ; // IDM_LAYOUT_SETDELETEMONIKER
  523. }
  524.  
  525. function ReplaceLayerImage (strToColor)
  526. {
  527.    var strTemp = 'CommandDispatcher,Active,45390,1024,STR MKVHair<'+ strToColor ;
  528.    LTKTriggerEvent (strTemp) ;
  529. }
  530.  
  531. function ShowLayer (strLayer)
  532. {
  533.    HideLayer (strLayer, false) ;
  534. }
  535.  
  536. function HideLayer (strLayer, bHide)
  537. {
  538.    var commandID;
  539.    
  540.    if (bHide == true)
  541.       commandID = '45202';        // IDM_LAYOUT_HIDELAYER
  542.    else
  543.       commandID = '45203';        // IDM_LAYOUT_SHOWLAYER
  544.    
  545.    switch (strLayer)
  546.    {
  547.    default:
  548.    case 'all':
  549.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',1,MKVNone') ;
  550.       break;
  551.  
  552.    case 'background':
  553.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVBackground') ;
  554.       break;
  555.    
  556.    case 'face':
  557.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVFace') ;
  558.       break;
  559.    
  560.    case 'hair':
  561.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVHair') ;
  562.       break;
  563.    
  564.    case 'eyeglasses':
  565.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVEyeglasses') ;
  566.       break;
  567.    
  568.    case 'hat':
  569.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVHat') ;
  570.       break;
  571.    
  572.    case 'frame':
  573.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVFrame') ;
  574.       break;
  575.    
  576.    case 'temp1':
  577.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVTemp1') ;
  578.       break;
  579.    
  580.    case 'temp2':
  581.       LTKTriggerEvent ('CommandDispatcher,Active,'+ commandID + ',0,STR MKVTemp2') ;
  582.       break;
  583.    }
  584. }
  585.  
  586. //SpencerP
  587. function DoAboutBox ()
  588. {
  589. //    LTKTriggerEvent("CommandDispatcher,Broadcast,20147,0");
  590.     showModalDialog("./About/About.html", null, "dialogWidth:350px;dialogHeight:600px;help:no");
  591. }